<?php
// Read news feed in from database
		$log = 1;
  		$NewsFeed = mysql_query("SELECT * FROM `news_feed` ORDER BY `ID` DESC"); 
		while($NewsFeed2 = mysql_fetch_array($NewsFeed))
		{
			$date[$log] = $NewsFeed2['date'];
			$news[$log] = $NewsFeed2['news'];
			
			$log = $log + 1;
		}
		
			$log = $log - 1; // correct for over counting.	
?>